package spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/register")
public class Register {

    @RequestMapping(method = RequestMethod.GET)
    public ModelAndView test(HttpServletRequest req, HttpServletResponse response) throws IOException {
        System.out.println("Register");
        return new ModelAndView("register");
    }
}
